package com.woniuxy.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.woniuxy.entity.AssetInfo;
import com.woniuxy.entity.CareerInfo;
import com.woniuxy.service.AssetService;
import com.woniuxy.service.CareerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName CareerController
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/20 15:12
 * @Version 1.0
 */
@RestController
public class CareerController {
    @Autowired
    CareerService careerService;

    /**
     * 添加工作信息
     * @param careerInfo
     * @return
     */
    @PostMapping("/addCareer")
    public AjaxResult addCareer(@RequestBody CareerInfo careerInfo){
        return  careerService.addCareer(careerInfo);
    }
}
